/**
 * Created by Ahmed Medhat on 13-Feb-15.
 */

    var appending_area='#';

var Interaction = {


     Zoom : function (scale_from,scale_to,inter_area_id) {
         return d3.behavior.zoom().scaleExtent([scale_from,scale_to]).on("zoom", function () {
             return d3.select(appending_area+inter_area_id).attr("transform", "translate(" + d3.event.translate + ")scale(" + d3.event.scale + ")");
         });

     }


}